package com.dorm.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Debug {
    private static final Logger logger = LoggerFactory.getLogger(Debug.class);

    public static void log(String message) {
        logger.info(message);
    }

    public static void log(String message, Object... args) {
        logger.info(message, args);
    }

    public static void error(String message) {
        logger.error(message);
    }

    public static void error(String message, Throwable e) {
        logger.error(message, e);
    }

    public static void error(String message, Object... args) {
        logger.error(message, args);
    }

    public static void warn(String message) {
        logger.warn(message);
    }

    public static void warn(String message, Object... args) {
        logger.warn(message, args);
    }

    public static void debug(String message) {
        logger.debug(message);
    }

    public static void debug(String message, Object... args) {
        logger.debug(message, args);
    }

    public static void api(String method, String url, Object body) {
        logger.debug("API {} {}, body: {}", method, url, body);
    }
} 